<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('审计记录详细')" />
    <th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m-t" id="signupForm">
        <div class="form-group">
            <label class="col-sm-2 control-label">操作模块：</label>
            <div class="form-control-static" th:text="${audit.title} + ' / ' + ${@dict.getLabel('zknj_audit_type',audit.type)}">
            </div>
        </div>
        <div class="form-group" th:style="'display:' + ${audit.auditParams == '' ? 'none' : 'block'}">
            <label class="col-sm-2 control-label">请求参数：</label>
            <div class="form-control-static"><pre id="auditParam"></pre></div>
        </div>
        <!--<div class="form-group">
            <label class="col-sm-2 control-label">返回参数：</label>
            <div class="form-control-static"><pre id="jsonResult"></pre></div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-2 control-label">状态：</label>
            <div class="form-control-static" th:class="${audit.operStatus == '0' ? 'label label-primary' : 'label label-danger'}" th:text="${audit.operStatus == '0' ? '正常' : '异常'}">
            </div>
        </div>
        <div class="form-group" th:style="'display:' + ${audit.operStatus == '0' ? 'none' : 'block'}">
            <label class="col-sm-2 control-label">异常信息：</label>
            <div class="form-control-static" th:text="${audit.errorMsg}">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: jsonview-js" />
<script th:inline="javascript">
    $(function() {
        var auditParam = [[${audit.auditParams}]];
        if ($.common.isNotEmpty(auditParam) && auditParam.length < 2000) {
            $("#auditParam").JSONView(auditParam);
        } else {
            $("#auditParam").text(auditParam);
        }
    });
</script>
</body>
</html>